<div class="albums view">
<h2><?php echo __('Album'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($album['Album']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Nombre'); ?></dt>
		<dd>
			<?php echo h($album['Album']['nombre']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Pagina'); ?></dt>
		<dd>
			<?php echo $this->Html->link($album['Pagina']['descripcion'], array('controller' => 'paginas', 'action' => 'view', $album['Pagina']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Album'), array('action' => 'edit', $album['Album']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Album'), array('action' => 'delete', $album['Album']['id']), null, __('Are you sure you want to delete # %s?', $album['Album']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Albums'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Album'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Paginas'), array('controller' => 'paginas', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Pagina'), array('controller' => 'paginas', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Fotografias'), array('controller' => 'fotografias', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Fotografia'), array('controller' => 'fotografias', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Fotografias'); ?></h3>
	<?php if (!empty($album['Fotografia'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Preview'); ?></th>
		<th><?php echo __('Full'); ?></th>
		<th><?php echo __('Titulo'); ?></th>
		<th><?php echo __('Categoria'); ?></th>
		<th><?php echo __('Descripcion'); ?></th>
		<th><?php echo __('Texto Preview'); ?></th>
		<th><?php echo __('Album Id'); ?></th>
		<th><?php echo __('Nombre Album'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($album['Fotografia'] as $fotografia): ?>
		<tr>
			<td><?php echo $fotografia['id']; ?></td>
			<td><?php echo $fotografia['preview']; ?></td>
			<td><?php echo $fotografia['full']; ?></td>
			<td><?php echo $fotografia['titulo']; ?></td>
			<td><?php echo $fotografia['categoria']; ?></td>
			<td><?php echo $fotografia['descripcion']; ?></td>
			<td><?php echo $fotografia['texto_preview']; ?></td>
			<td><?php echo $fotografia['album_id']; ?></td>
			<td><?php echo $fotografia['nombre_album']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'fotografias', 'action' => 'view', $fotografia['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'fotografias', 'action' => 'edit', $fotografia['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'fotografias', 'action' => 'delete', $fotografia['id']), null, __('Are you sure you want to delete # %s?', $fotografia['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Fotografia'), array('controller' => 'fotografias', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
